import request from '@/utils/request'

// 查询质量抽检单列表
export function listNcQualitySampling(query) {
  return request({
    url: '/business/NcQualitySampling/list',
    method: 'get',
    params: query
  })
}

// 查询质量抽检单详细
export function getNcQualitySampling(id) {
  return request({
    url: '/business/NcQualitySampling/' + id,
    method: 'get'
  })
}

// 新增质量抽检单
export function addNcQualitySampling(data) {
  return request({
    url: '/business/NcQualitySampling',
    method: 'post',
    data: data
  })
}

// 修改质量抽检单
export function updateNcQualitySampling(data) {
  return request({
    url: '/business/NcQualitySampling',
    method: 'put',
    data: data
  })
}

// 删除质量抽检单
export function delNcQualitySampling(id) {
  return request({
    url: '/business/NcQualitySampling/' + id,
    method: 'delete'
  })
}
